package com.example.demo.controller;

import org.springframework.boot.SpringBootConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Question CalController
 * @Date 2022/12/5 12:23
 * @Solution
 */
@RestController
public class CalController {
    @RequestMapping("/sum")
    public int sum(int a,int b) {
        return a+b;
    }
}
